import request from '@/utils/request'

export default {
    //---------------------------------------------------------------
    //查询教师信息
    pageTeacher(current, limit, teacherDto) {
        return request({
            url: `/api/teacher/pageTeacher/${current}/${limit}`,
            method: 'post',
            data:teacherDto
        })
    },
    //添加教室
    addTeacher(sysTeacher){
        return request({
            url: `/api/teacher/addTeacher`,
            method: 'post',
            data:sysTeacher
        })
    },
    //查询一个教师信息
    getTeacherById(id){
        return request({
            url: `/api/teacher/getTeacherById/${id}`,
            method: 'get'
        })
    },
    updateTeacher(sysTeacher){
        return request({
            url: `/api/teacher/updateTeacher`,
            method: 'post',
            data:sysTeacher
        })
    },
    //删除教室
    delTeacher(id){
        return request({
            url: `/api/teacher/delTeacher/${id}`,
            method: 'delete'
        })
    }




}

